package com.example.seckill.mapper;

import com.example.seckill.VO.Student_Bed_Order_VO;
import com.example.seckill.pojo.Order;
import com.example.seckill.pojo.Student_Bed_Order;
import com.example.seckill.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {
    Order checkOrder(User user);

    void createNewOrder(Order order);

//    Order selectOneOrder(OrderVO order);

    Order getOrderByUID(String student_id);

    void createNewStudentBedOrder(Student_Bed_Order student_bed_order);

    Student_Bed_Order_VO getStudentBedOrder(User user);

    Student_Bed_Order findOderByBedID(Long bed_id);

    List<Student_Bed_Order_VO> getOrderList();
}
